package terra.model.object;

import terra.definitions.NpcDef;
import terra.model.object.interfaces.Attackable;
import terra.model.object.interfaces.Attacker;

public class Animal extends NpcObject {

	private static final long serialVersionUID = 7345914242075610504L;

	public Animal(int objectId, NpcDef def) {
		super(objectId, def);
	}

	public Animal() {
	}

	@Override
	public void update(int delta) {
		super.update(delta);
		updateGravity(delta);
		needUpdate();
		if (isDead())
			removeCooldown -= delta;
	}

	@Override
	public void onHit(Attacker damager, float damage) {
		super.onHit(damager, damage);
		getAi().isAttacked(damager);
	}

	@Override
	public void objectChanged(GObject object) {}

	@Override
	public void hit() {}

	@Override
	public void onKill(Attackable target) {}

}
